﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
using AgileConfig.Server.Data.Entity;

namespace AgileConfig.Server.Apisite.Models;

[ExcludeFromCodeCoverage]
public class ServerNodeVM
{
    [Required(ErrorMessage = "节点地址不能为空")]
    [MaxLength(100, ErrorMessage = "节点地址长度不能超过100位")]
    public string Address { get; set; }

    [MaxLength(50, ErrorMessage = "备注长度不能超过50位")]
    public string Remark { get; set; }

    public NodeStatus Status { get; set; }
    public DateTime? LastEchoTime { get; set; }
}